#
# Makefile for the lombo serial device drivers.
#

obj-y += lombo_uart.o
obj-$(CONFIG_SERIAL_EARLYCON_LOMBO) += early_lombo_uart.o

ifeq ($(CONFIG_ARCH_LOMBO_N7V1), y)
UART_CSP_PLATFORM := n7v1
else
UART_CSP_PLATFORM := n9v1
endif

SOURCE := $(srctree)/$(src)/csp/$(UART_CSP_PLATFORM)/uart_operate.c

ifneq ($(wildcard $(SOURCE)), )
obj-y += csp/$(UART_CSP_PLATFORM)/
else
obj-y += liblombo_uart.o
$(obj)/liblombo_uart.o: $(src)/csp/$(UART_CSP_PLATFORM)/liblombo_uart
	cp $< $@
endif
